<template>
  <div class="header">
        <div class="title">
        </div>
        <div class="seek" @click="toSerach">
          <van-icon name="search" size="22" color="#666" />
          <span>搜索商品，共3000+款好物</span>
        </div>
        <div class="login">
          登录
        </div>
  </div>
</template>

<script>
import Vue from 'vue'
import { NavBar } from 'vant'

Vue.use(NavBar)
export default {
  methods: {
    toSerach () {
      this.$router.push('/search')
    }
  }
}
</script>

<style lang='less' scoped>
.header{
  padding: .16rem .3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .title{
    width: 1.38rem;
    height: .4rem;
    background-image: url(../../../assets/elf.png);
    background-size: 3.76rem 3.76rem;
    background-position: -1.26rem -2.52rem;
  }
  .seek{
    width: 4.4rem;
    height: .56rem;
    padding-left: .3rem;
    border-radius: 0.09rem;
    display: flex;
    align-items: center;
    color: #666;
    background-color: #ededed;
    span{
      font-size: .28rem;
      font-weight: 300;
    }
  }
  .login{
    width: .74rem;
    height: .4rem;
    line-height: .4rem;
    text-align: center;
    color: #dd1a21;
    border: 1px solid #dd1a21;
    border-radius: .08rem;
    font-size: .24rem;
  }
}
</style>
